home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
By Popular Request 2.0
/
By Popular Request 2.0 (Arsenal Computer).ISO
/
amiga_1
/
arexx-10.lha
/
ARexX-10
/
ARexX-10.doc
< prev
next >
Wrap
Text File
|
1995-03-20
|
8KB
|
177 lines
/* ARexX-10 */
This is a program for communicating with the X-10 coprocessor being sold
by Marrick Limited. It provides an ARexx hub through which any number of
other programs may communicate with the interface.
Requirements: An Amiga with kickstart revision 2.0 or higher and ARexx.
An X-10 Coprocessor board (see sources, below).
A TW-523 X-10 powerline interface.(see sources, below).
Disclaimer:
Although ARexX-10 has been thoroughly tested, no guarantee is given or
implied that this program is fit for any use. The program and the
information within this text is provided on an "as is" basis. In no
event will I be liable for any direct, indirect, incidental, or
consequential damages resulting from the use of this program or the
information presented within this text.
Author:
ARexX-10 is Copyright ⌐ 1995 Lyle Hazelwood.
Lyle Hazelwood
824 Narcissus Ave.
Holly Hill, Fl. 32117-3341
Commercial distribution of ARexX-10 or of a package containing
ARexX-10 requires written approval of the author.
ARexX-10 May be distributed publicly, or in library collections,
As long as all files remain intact and unmodified.
Usage: The program may be run from the workbench, from a shell, or by
dragging it's icon into the WBStartup drawer. It does not open a window or
show any visual interface, But the user may communicate with it through
ARexx. It will open the specified serial port, reset the X-10 interface,
and monitor all X-10 activity. the User can write scripts for specific
controls, and/or use the Remote programs provided to access the interface.
The program may be terminated with the quit.rexx script, provided.
Shell/Script startup options: The following options may used when starting
the program by shell or script. The template is given in standard AmigaDOS
format. TEMPLATE=P=PORTNAME/K,D=DEVICE/K,U=UNIT/N,B=BAUD/N,S=BUFFERSIZE/N
Most users will not need to change from the default options unless the
interface is connected to a serial port interface card.
Option Abbrev. Default Description
PORTNAME P BSR Sets the name of the ARexx port for this program.
DEVICE D serial.device Specify the serial device to use.
UNIT U 0 Specify which unit of the serial device to use.
BAUD B 1200 Specify the baud rate of the X-10 interface.
BUFFERSIZE S 255 The size of the serial read buffer.
Workbench (Icon) startup options: These options are set by selecting the
ARexX-10 icon and selecting "information" from the workbench icon menu.
If not set, they will assume reasonable defaults.
TOOLTYPE Default
PORTNAME BSR Set the name of the ARexx port.
DEVICE serial.device Specify the device driver to access the interface.
UNIT 0 Specify the unit of the serial device
BAUD 1200 Specify the baud rate for the serial port.
SIZE 256 Specify the read buffer size.
DONOTWAIT Add this tooltype if running from the WBStartup
drawer to allow the startup to continue.
Note: Arexx must be running BEFORE ARexX-10 is started, or the program will
post an error and exit.
Once running, ARexX-10 will open the serial device, and reset the X-10
interface. This will cause all the LED's to flash for a second. The
interface may be accessed with the following ARexx commands. If a program
would like to be informed of X-10 activity, it may register for updates
from the ARexX-10 program.
Note: before these commands will work, the user must set the ADDRESS for
their ARexx environment to BSR (unless changed by the above options)
Rexx Commands:
QUIT the ARexX-10 program will exit, freeing all resources.
SEND commandstring will send commandstring to the interface. See the
X-10 interface docs for details on the available commands. If there
is some sort of error, the rexx message will return as error.
ADD housecodes will add or modify the notification of the caller
to the specified housecodes. housecodes is a number representing
which housecodes the caller wishes to be notified of. The lowest bit
represents A, You may find this number by adding the following
numbers for each housecode you wish to be notified for...
A: 1
B: 2
C: 4
D: 8
E: 16
F: 32
G: 64
H: 128
I: 256
J: 512
K: 1024
L: 2048
M: 4096
N: 8192
O: 16384
P: 32768
All housecodes may be specified with 65535
After issuing an ADD command, your program will be sent copies of
all commands relating to the housecodes you have specified. If the
program wishes to change it's housecodes for notification, simply
re send the ADD command with the new housecodes, they will replace
the previously selected ones. NOTE: you will only receive
notifications for OTHER programs or transmissions on the power line.
You will not receive notifications of your own transmissions.
DEL Will remove all notification for the caller.
A program which has called ADD should call DEL on exit, or when
updates are no longer requested.
Planned for future release:
1> A status report of the On/Off/Dim state of each unit on each
housecode. This will allow a newly opened remote to show current
status of all units available.
2> A link module allowing certain X-10 events to trigger ARexx scripts.
3> Whatever is suggested to me, if I like the idea.
4> Whatever I am paid sufficiently to create, whether I like it or not!
If you have any comments, suggestions, or donations, I may be reached at:
Lyle Hazelwood
824 Narcissus Ave.
Holly Hill, Fl. 32117-3341
If you develop any neat applications for this, or create any cool new
remotes, please consider sending me a copy, and tell me whether or not I
may distribute them in the next release.
Enjoy! 8^)
Sources:
Software:
By Modem:
Marrick Limited BBS: (407) 322-1429
News-Journal Center: (904) 947-NEWS (6397) Amiga Forum
By Public channels:
Updates will be provided to Fred Fish, Home Automation Systems, and
to Marrick Limited, for them to distribute as they see fit.
From the Author: I will gladly mail updates to anyone who will send
a check (Payable in U.S. funds) for $5 to cover my time and postage.
I will send the current version immediately, and will also send the
next version when it becomes available.
Hardware:
The TW-523 Powerline interface
May be ordered from
Home Automation Systems (HAS-1135 $29.95 as of March '95)
151 Kalmus Dr. Ste. L4
Costa Mesa, CA. 92626
(800) SMART-HOME (762-7846)
(800) FOR-XTEN (367-9836)
or from
Marrick Limited (TW-523 $30.00 as of March '95)
P.O. Box 950940
Lake Mary, Fl. 32795
(407) 323-4467
The X-10 interface may be ordered from
Home Automation Systems as HAS-1152 (assembled) $139.95 (as of 3/95)
HAS-1150 (kit) $69.95 (as of 3/95)
Marrick Limited as 101-002-A-ASM $134.95 (as of 3/95)
101-002-A-KIT $59.95 (as of 3/95)